<?php 
/**
 * Profile Manager
 *
 * Profile Types add form
 *
 * @package profile_manager
 * @author ColdTrick IT Solutions
 * @copyright Coldtrick IT Solutions 2009
 * @link http://www.coldtrick.com/
 */

$form_title = elgg_echo('skill:newskill:title');

$formbody = "<table class='newskilltbl'>\n";
$formbody .= "<tr>";
$formbody .= "<th class='infor_text'>";
$formbody .= elgg_echo('skill:name') . "*:</th><th class='newskill_text'>";
$formbody .= elgg_view('input/text', array(
		'name' => 'skillName', 
		'required'=>'required', 
		'placeholder' => elgg_echo('skill:newskill:skillname')));
$formbody .= "</tr>";
$formbody .= "<th class='infor_text'>";
$formbody .= elgg_echo('skill:newskill:skillDescription') . ":";
$formbody .= "</th>";
$formbody .= "<th class='newskill_text'>";
$formbody .= elgg_view('input/plaintext', array(
		'name' => 'description'));
$formbody .= "</th>";
$formbody .= "</tr>";
$formbody .= "</table>";

$formbody .= elgg_view("input/hidden", array("name" => "guid", "value" => $guid));
$formbody .= elgg_view('input/submit', array("value" => elgg_echo('skill:save')));

$form = elgg_view('input/form', array('body' => $formbody, 'action' => $vars['url'] . 'action/skillmanagement/newskill'));

?>
<div class="userskill_form">
	<div class="elgg-head">
		<h3>
			<?php echo $form_title; ?>
		</h3>
	</div>
	<div class="elgg-body">
		<?php echo $form; ?>
	</div>
</div>


<style>
.newskilltbl{
	width: 100%;
	padding: 10px;
}
.userskill_form{
	width:600px;
}
.infor_text{
	padding-left: 5px;
}
.newskill_text{
	padding-right: 10px;
	
}

</style>